<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<!-- <script src="./es6.js"></script> -->
<body>
    
</body>
</html>
<script type="module">
   // 现在的浏览器，完全适配 es6代码
//    import * as val from "./es6.js";
//    console.log(val);
import val from "./es6.js";

console.log(val);
</script>